﻿using VIA.Integration;
using VIA.SiMoJi.Domain.Electronics;

namespace VIA.SiMoJi.Domain.Electronics
{
    public partial class Electronic
    {
        public void CreateCylinder()
        {
            Cylinder_入料到位阻挡气缸1 = new(DO23_入料到位挡缸伸出电磁阀1控2, DO24_入料到位挡缸缩回电磁阀1控2, DI23_入料到位挡缸1伸出磁开, DI24_入料到位挡缸1缩回磁开) { Id = nameof(Cylinder_入料到位阻挡气缸1), Name = "阻挡气缸1", };
            Cylinder_入料到位阻挡气缸2 = new(DO23_入料到位挡缸伸出电磁阀1控2, DO24_入料到位挡缸缩回电磁阀1控2, DI25_入料到位挡缸2伸出磁开, DI26_入料到位挡缸2缩回磁开) { Id = nameof(Cylinder_入料到位阻挡气缸2), Name = "阻挡气缸2", };
            Cylinder_入料左右定位气缸1 = new(DO26_入料左右拍板气缸伸出电磁阀1控2, DO25_入料左右拍板气缸缩回电磁阀1控2, DI28_入料左右拍板气缸1伸出磁开, DI27_入料左右拍板气缸1原点磁开) { Id = nameof(Cylinder_入料左右定位气缸1), Name = "左右气缸1", };
            Cylinder_入料左右定位气缸2 = new(DO26_入料左右拍板气缸伸出电磁阀1控2, DO25_入料左右拍板气缸缩回电磁阀1控2, DI30_入料左右拍板气缸2伸出磁开, DI29_入料左右拍板气缸2原点磁开) { Id = nameof(Cylinder_入料左右定位气缸2), Name = "左右气缸2", };
            Cylinder_入料前后定位水平气缸1 = new(DO28_入料前后拍板气缸伸出电磁阀1控2, DO27_入料前后拍板气缸缩回电磁阀1控2, DI32_入料前后拍板气缸1伸出磁开, DI31_入料前后拍板气缸1缩回磁开) { Id = nameof(Cylinder_入料前后定位水平气缸1), Name = "前后气缸1", };
            Cylinder_入料前后定位水平气缸2 = new(DO28_入料前后拍板气缸伸出电磁阀1控2, DO27_入料前后拍板气缸缩回电磁阀1控2, DI34_入料前后拍板气缸2伸出磁开, DI33_入料前后拍板气缸2缩回磁开) { Id = nameof(Cylinder_入料前后定位水平气缸2), Name = "前后气缸2", };
            Cylinder_入料前后定位上下气缸1 = new(DO30_入料前后拍板上下气缸伸出电磁阀1控2, DO29_入料前后拍板上下气缸缩回电磁阀1控2, DI36_入料前后拍板上下气缸1伸出磁开, DI35_入料前后拍板上下气缸1缩回磁开) { Id = nameof(Cylinder_入料前后定位上下气缸1), Name = "上下气缸1", };
            Cylinder_入料前后定位上下气缸2 = new(DO30_入料前后拍板上下气缸伸出电磁阀1控2, DO29_入料前后拍板上下气缸缩回电磁阀1控2, DI38_入料前后拍板上下气缸2伸出磁开, DI37_入料前后拍板上下气缸2缩回磁开) { Id = nameof(Cylinder_入料前后定位上下气缸2), Name = "上下气缸2", };
            Cylinder_飞达1压膜气缸 = new(DO83_飞达1压料气缸) { Id = nameof(Cylinder_飞达1压膜气缸), Name = "飞达1压膜气缸", };
            Cylinder_飞达1定位气缸 = new(DO50_飞达1定位缸伸出电磁阀, DO51_飞达1定位缸缩回电磁阀, DI50_飞达1定位缸伸出磁开, DI51_飞达1定位缸缩回磁开) { Id = nameof(Cylinder_飞达1定位气缸), Name = "飞达1定位气缸", };
            Cylinder_飞达2压膜气缸 = new(DO84_飞达2压料气缸) { Id = nameof(Cylinder_飞达2压膜气缸), Name = "飞达2压膜气缸", };
            Cylinder_飞达2定位气缸 = new(DO54_飞达2定位缸伸出电磁阀, DO55_飞达2定位缸缩回电磁阀, DI54_飞达2定位缸伸出磁开, DI55_飞达2定位缸缩回磁开) { Id = nameof(Cylinder_飞达2定位气缸), Name = "飞达2定位气缸", };
            Cylinder_NG下料无杆缸 = new(DO58_NG下料无杆缸伸出电磁阀, DO57_NG下料无杆缸缩回电磁阀, DI58_NG下料无杆缸伸出磁开, DI57_NG下料无杆缸缩回磁开) { Id = nameof(Cylinder_NG下料无杆缸), Name = "NG下料无杆缸", };
            Cylinder_NG下料抽屉定位气缸 = new(DO59_NG下料抽屉定位缸伸出电磁阀, DO60_NG下料抽屉定位缸缩回电磁阀, DI59_NG下料抽屉定位缸伸出磁开, DI60_NG下料抽屉定位缸缩回磁开) { Id = nameof(Cylinder_NG下料抽屉定位气缸), Name = "NG下料抽屉定位气缸", };
            Cylinder_夹爪1气缸 = new(DO65_夹爪气缸1张开电磁阀, DO66_夹爪气缸1闭合电磁阀) { Id = nameof(Cylinder_夹爪1气缸), Name = "夹爪1气缸", };
            Cylinder_夹爪2气缸 = new(DO67_夹爪气缸2张开电磁阀, DO68_夹爪气缸2闭合电磁阀) { Id = nameof(Cylinder_夹爪2气缸), Name = "夹爪2气缸", };
            Cylinder_夹爪3气缸 = new(DO69_夹爪气缸3张开电磁阀, DO70_夹爪气缸3闭合电磁阀) { Id = nameof(Cylinder_夹爪3气缸), Name = "夹爪3气缸", };
            Cylinder_夹爪4气缸 = new(DO71_夹爪气缸4张开电磁阀, DO72_夹爪气缸4闭合电磁阀) { Id = nameof(Cylinder_夹爪4气缸), Name = "夹爪4气缸", };
            Cylinder_夹爪5气缸 = new(DO73_夹爪气缸5张开电磁阀, DO74_夹爪气缸5闭合电磁阀) { Id = nameof(Cylinder_夹爪5气缸), Name = "夹爪5气缸", };
            Cylinder_夹爪6气缸 = new(DO75_夹爪气缸6张开电磁阀, DO76_夹爪气缸6闭合电磁阀) { Id = nameof(Cylinder_夹爪6气缸), Name = "夹爪6气缸", };
            Cylinder_夹爪7气缸 = new(DO77_夹爪气缸7张开电磁阀, DO78_夹爪气缸7闭合电磁阀) { Id = nameof(Cylinder_夹爪7气缸), Name = "夹爪7气缸", };

            Nozzle_夹爪1吸嘴 = new(DO33_取放料真空1吸, DO34_取放料真空1吹, null, DI40_取放料真空表1) { Id = nameof(Nozzle_夹爪1吸嘴), Name = "夹爪1吸嘴", };
            Nozzle_夹爪2吸嘴 = new(DO35_取放料真空2吸, DO36_取放料真空2吹, null, DI41_取放料真空表2) { Id = nameof(Nozzle_夹爪2吸嘴), Name = "夹爪2吸嘴", };
            Nozzle_夹爪3吸嘴 = new(DO37_取放料真空3吸, DO38_取放料真空3吹, null, DI42_取放料真空表3) { Id = nameof(Nozzle_夹爪3吸嘴), Name = "夹爪3吸嘴", };
            Nozzle_夹爪4吸嘴 = new(DO39_取放料真空4吸, DO40_取放料真空4吹, null, DI43_取放料真空表4) { Id = nameof(Nozzle_夹爪4吸嘴), Name = "夹爪4吸嘴", };
            Nozzle_夹爪5吸嘴 = new(DO41_取放料真空5吸, DO42_取放料真空5吹, null, DI44_取放料真空表5) { Id = nameof(Nozzle_夹爪5吸嘴), Name = "夹爪5吸嘴", };
            Nozzle_夹爪6吸嘴 = new(DO43_取放料真空6吸, DO44_取放料真空6吹, null, DI45_取放料真空表6) { Id = nameof(Nozzle_夹爪6吸嘴), Name = "夹爪6吸嘴", };
            Nozzle_夹爪7吸嘴 = new(DO45_取放料真空7吸, DO46_取放料真空7吹, null, DI46_取放料真空表7) { Id = nameof(Nozzle_夹爪7吸嘴), Name = "夹爪7吸嘴", };
            AlarmLamp = new(DO07_三色灯绿灯1控2模组继电器, DO05_三色灯红灯1控2模组继电器, DO06_三色灯黄灯1控2模组继电器, DO08_三色灯蜂鸣器1控2模组继电器);
        }
        #region 气缸

        public AlarmLamp AlarmLamp { get; set; }

        public CylinderEx Cylinder_入料到位阻挡气缸1 { get; set; }
        public CylinderEx Cylinder_入料到位阻挡气缸2 { get; set; }
        public CylinderEx Cylinder_入料左右定位气缸1 { get; set; }
        public CylinderEx Cylinder_入料左右定位气缸2 { get; set; }
        public CylinderEx Cylinder_入料前后定位水平气缸1 { get; set; }
        public CylinderEx Cylinder_入料前后定位水平气缸2 { get; set; }
        public CylinderEx Cylinder_入料前后定位上下气缸1 { get; set; }
        public CylinderEx Cylinder_入料前后定位上下气缸2 { get; set; }
        public CylinderEx Cylinder_飞达1压膜气缸 { get; set; }
        public CylinderEx Cylinder_飞达1定位气缸 { get; set; }
        public CylinderEx Cylinder_飞达2压膜气缸 { get; set; }
        public CylinderEx Cylinder_飞达2定位气缸 { get; set; }
        public CylinderEx Cylinder_NG下料无杆缸 { get; set; }
        public CylinderEx Cylinder_NG下料抽屉定位气缸 { get; set; }
        public CylinderEx Cylinder_夹爪1气缸 { get; set; }
        public CylinderEx Cylinder_夹爪2气缸 { get; set; }
        public CylinderEx Cylinder_夹爪3气缸 { get; set; }
        public CylinderEx Cylinder_夹爪4气缸 { get; set; }
        public CylinderEx Cylinder_夹爪5气缸 { get; set; }
        public CylinderEx Cylinder_夹爪6气缸 { get; set; }
        public CylinderEx Cylinder_夹爪7气缸 { get; set; }

        #endregion

        #region 吸嘴

        public Nozzle Nozzle_夹爪1吸嘴 { get; set; }
        public Nozzle Nozzle_夹爪2吸嘴 { get; set; }
        public Nozzle Nozzle_夹爪3吸嘴 { get; set; }
        public Nozzle Nozzle_夹爪4吸嘴 { get; set; }
        public Nozzle Nozzle_夹爪5吸嘴 { get; set; }
        public Nozzle Nozzle_夹爪6吸嘴 { get; set; }
        public Nozzle Nozzle_夹爪7吸嘴 { get; set; }
        #endregion
    }
}
